import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入年份");
        Calendar calendar = Calendar.getInstance();
        calendar.set(sc.nextInt(), 2, 1);
        calendar.add(Calendar.DATE, -1);
        int day = calendar.get(Calendar.DATE);
        if (day > 28) {
            System.out.println("不为闰年365天");
        } else {
            System.out.println("为闰年366天");
        }
    }
}
